	function delUser() {
		if (confirm("確定要刪除這些委刊單嗎？")) {
			$('input:checkbox:checked').parent().parent().hide();
		}

	}
		function clickMenu(param) {
			
			if(parent!=null&&parent.right!=null)
			{
				parent.right.location=param;
				return;
			}
			if(parent!=null)
			{
			parent.window.location=param;
				return;
			}
			else 
			{
				window.location=param;
				return;
			}
		}

		function resize() {

			var iframe = document.getElementById("mainFrame");

			$(iframe).height(document.documentElement.clientHeight);

			//if((document.documentElement.clientWidth-235)>765){

				$(iframe).width(210);

			//}else{

				//$(iframe).width(765);

			//};

	

			

		}

		
window.onresize = function() {

			resize();

		}

function procDeleteButton()
{
        $('.button').each(function(index) {
                if($(this).attr("value")=="刪除")
				{
					$(this).click(function() {
              		  delUser();
       				 });
				}
        });
}
function procDate()
{
        $('.date').each(function(index) {
			   $(this).datepicker({
							dateFormat: 'yy/mm/dd',
							changeMonth: true,
							changeYear: true,
							inline: true
		
			});
        });

}
function procPopWin()
{

        $('#customerNameImg').click(function() {
		 var vReturnValue=window.showModalDialog ('query.htm', $('#form1'), 'height=380, width=420, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no');   
		$('#customerName').val(vReturnValue);
		});
/*		
	$('#customerName').popupWindow({ 
	windowURL:'query.htm', 
	centerScreen:1 ,
	width:380,
	height:420,
	windowName:'swip' 
	}); 
	$('#customerNameImg').popupWindow({ 
		windowURL:'query.htm', 
		centerScreen:1 ,
		width:380,
		height:420,
		windowName:'swip' 
	}); 
*/
}
$(document).ready(function(){
   procDeleteButton();
   procDate();
   procPopWin();
resize();
  $(".stripe_tb tr").mouseover(function(){ 
 //如果鼠?移到class?stripe_tb的表格的tr上?，?行函?
    $(this).addClass("over");}).mouseout(function(){ 
 //??行添加class值?over，并且?鼠?一出?行??行函?
    $(this).removeClass("over");}) //移除?行的class
  $(".stripe_tb tr:even").addClass("alt");
 //?class?stripe_tb的表格的偶?行添加class值?alt
});


		var message = {
			"global_validate_z0" : "此欄位必須輸入.",
			"global_validate_z1" : "請輸入正確的數字！",
			"global_validate_z2" : "請輸入正確的自然數(如:0或者123)!",
			"global_validate_z3" : "請輸入正確的正整數(如:123)!",
			"global_validate_z4" : "請輸入正確的日期(如:2004/10/12)!",
			"global_validate_z5" : "請輸入正確的日期時間(如:2004-10-12 12:21:30)!",
			"global_validate_z6" : "該輸入框不能有中文字元",
			"global_validate_z7" : "該輸入正確的Email位址!",
			"global_validate_z8" : "該輸入正確的電話號碼!",
			"global_validate_z9" : "該輸入正確的手機號碼!",
			"global_validate_z10" : "該輸入正確的郵遞區號!",
			"global_validate_z11" : "該輸入正確的身份證號碼!",
			"global_validate_z12" : "輸入必須為整數類型!",
			"global_validate_z13" : "整數位元不能超過{0}位!",
			"global_validate_z14" : "小數位不能超過{0}位!",
			"global_validate_z15" : "你只能輸入{0}個英文或數位!\n(如果要輸入中文字元，您最多只能輸入{1}個中文字元)",
			"global_validate_z16" : "請輸入百分數格式(如：0-100)！",
			"global_data_loading" : "數據載入中...",
			"global_pleaseselect" : "--請選擇--"
		};

